package com.ytf.test.tenth;

/**
 * @author: YTF
 * @date: 2025/2/20 15:46
 * @version: 1.0
 * @description:
 */
public class Parcel2 {
    class Contents{
        private int i =11;
        public int value(){
            return i;
        }
    }
    class Destination{
        private String label;

        public Destination(String label) {
            this.label = label;
        }
        String readLabel(){
            return label;
        }
    }

    public Contents contents(){
        return new Contents();
    }

    public Destination to(String s){
        return new Destination(s);
    }

    private void ship(String dest) {
        Contents contents = new Contents();
        Destination destination = new Destination(dest);
        System.out.println(destination.readLabel());
    }

    public static void main(String[] args) {
        Parcel2 parcel1 = new Parcel2();
        parcel1.ship("Tasmania");
        Parcel2 parcel2 = new Parcel2();
        Contents contents = parcel2.contents();
        Destination borneo = parcel2.to("Borneo");
    }
}
